import request from '@/utils/request'

export function getList(data) {
  return request({
    url: '/admin.php?s=Admin.Group.GroupList',
    method: 'post',
    data,
  })
}

export function getgroup(data) {
  return request({
    url: '/admin.php?s=Admin.Group.GroupQuery',
    method: 'post',
    data,
  })
}

export function addGroup(data) {
  return request({
    url: '/admin.php?s=Admin.Group.AddGroup',
    method: 'post',
    data,
  })
}

export function editGroup(data) {
  return request({
    url: '/admin.php?s=Admin.Group.UpdateGroup',
    method: 'post',
    data,
  })
}

export function switchGroup(data) {
  return request({
    url: '/admin.php?s=Admin.Group.ModifyGroupStatus',
    method: 'post',
    data,
  })
}

export function deleteGroup(data) {
  return request({
    url: '/admin.php?s=Admin.Group.DeleteGroup',
    method: 'post',
    data,
  })
}
